package com.starinside.wp.domain.cookbook;

import com.starinside.wp.domain.NativeWithResultClass;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 食谱
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "tb_recipe")
@Entity
@NativeWithResultClass
public class Recipe extends RecipeBase implements Serializable {
  private static final long serialVersionUID = 1L;

  /**
   * 日期
   */
  @Column(name = "recipe_date")
  private Date recipeDate;

  /**
   * 餐次ID
   */
  @Column(name = "recipe_type_id")
  private Long recipeTypeId;

  /**
   * 餐次名字
   */
  @Column(name = "recipe_type_name")
  private String recipeTypeName;

  /**
   * 食物ID
   */
  @Column(name = "food_id")
  private Long foodId = 0L;

  /**
   * 幼儿园ID
   */
  @Column(name = "area_id")
  private String areaId;


  
}